home *** CD-ROM | disk | FTP | other *** search
- Path: seagoon.newcastle.edu.au!usenet
- From: mazz@faceng.newcastle.edu.au (Richard Mazzaferri)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ vs Delphi 2.0
- Date: Fri, 22 Mar 1996 05:05:00 GMT
- Organization: Newcastle University
- Message-ID: <3152304b.5915048@news.newcastle.edu.au>
- References: <825673272.2083@axiombc.demon.co.uk> <4hmop6$snh@cdshub.cdc.com> <4ims71$oh3@hawk.pix.za>
- NNTP-Posting-Host: tesla.newcastle.edu.au
-
- prism@pixie.co.za (Pri$m) wrote:
-
- > >>What about Class Libraries, can we use C++ libraries in Delphi?
- > >Yes.
-
- As long as you encapsulate them in a DLL with a straight C interface - this
- can be annoying, and can lead to programming errors because you tend to
- pass generic pointers and lose some type checking.
-
- > The problem with Delphi is that most people don't seem to realise that
- > true programming power\flexibility and ease of use are generally
- > mutually exclusive. Delphi is in Pascal ... which is fundamentally a
- > teaching language and was never meant as anything more. C++ .exe's
- > tend to be smaller and faster than Delphi .exe's. Although C++ has no
- > real standard, it's getting there and it is younger than Pascal.
- > Pascal tries to be English-like and this it has become pretty rigid.
- > (This is a personal opinion) to fit smoothly ith OOP. Additionally, if
- > you use Delphi, you'll find that the general feel of it discourages
- > one from using code, and directly controlling things. This can't be
- > good!
-
- ????
-
- I don't want to restart the language wars, but some comment is required.
-
- Have you spent much time using Delphi, say more than ten minutes? Delphi
- is NOT in Pascal - that statement is like saying that C++ is in C. Delphi
- is in Object Pascal which is *derived* from Pascal, just like C++ is
- derived from C. I think you'll find that many creations find uses in the
- real world beyond the intent of the original author, and that Delphi is not
- particularly rigid - just uses different syntax and type checking.
- Delphi's OO is in some ways better than C++ and in other ways not as good.
- The biggest omissions are multiple inheritance (which can generally be
- faked with a bit of work) and templates (no workaround :-(. Some of the
- big wins are properties and really good exception handling and RTTI. I
- also find that I generate far fewer bugs in Delphi than I did in C++,
- probably to do with the type checking.
-
- I don't understand why it "..discourages one from using code...". I
- certainly don't get that feeling. I've been a long time C++ programmer,
- and the first couple of days with Delphi felt quite strange, because I
- didn't have the broad knowledge of the entire system that I had with
- various C++ compilers. After that, it was *very* pleasant and *very*
- productive. The EXEs tend to suffer from the first couple of hundred of kB
- of run time library (which is not a big worry in most cases these days),
- but they are not particularly slow in my experience.
-
- Each to his own :-)
-
- Have fun,
- Mazz.
- mazz@faceng.newcastle.edu.au
-